
using Core.SimpleTemp.Common;
using Core.SimpleTemp.Entitys;
using Core.Toolkit.Core.Application;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;

namespace Core.SimpleTemp.Application
{
    [CreateMap(typeof(YH_ScreeningPlanProject))]
    public class YH_ScreeningPlanProjectDto : Dto
    {
        /// <summary>
        /// 隐患排查计划主表ID
        /// </summary>
        public Guid? ScreeningPlanId { get; set; }
        /// <summary>
        /// 排查项目
        /// </summary>
        public String Project { get; set; }
        /// <summary>
        /// 涉及区域ID
        /// </summary>
        public Guid? Region { get; set; }
        /// <summary>
        /// 区域名称
        /// </summary>
        [ConcurrentKeyToValue("97", "Region")]
        public String RegionName { get; set; }
        /// <summary>
        /// 备注说明
        /// </summary>
        public String Remark { get; set; }
        public SysAreaDto SysArea { get; set; }
        [JsonIgnore]
        public YH_ScreeningPlanDto YH_ScreeningPlan { get; set; }

        public ICollection<YH_ScreeningPlanProDetailDto> YH_ScreeningPlanProDetail { get; set; }


    
    }

    /// <summary>
    /// 项目和详细（标准）冗余类
    /// </summary>
    public class YH_ProjectAndDetail : Dto
    {
        /// <summary>
        /// 隐患排查计划主表ID
        /// </summary>
        public Guid? ScreeningPlanId { get; set; }
        /// <summary>
        /// 排查项目
        /// </summary>
        public String Project { get; set; }
        /// <summary>
        /// 涉及区域ID
        /// </summary>
        public Guid? Region { get; set; }
        /// <summary>
        /// 区域名称
        /// </summary>
        public String RegionName { get; set; }
        public String AreaName{get;set;}
        /// <summary>
        /// 备注说明
        /// </summary>
        public String Remark { get; set; }
        public SysAreaDto SysArea { get; set; }

        /// <summary>
        /// 隐患排查计划项目ID
        /// </summary>
        public Guid? ScreeningPlanProjectId { get; set; }
        /// <summary>
        /// 隐患排查计划详细ID
        /// </summary>
        public Guid? ScreeningPlanProDetailId { get; set; }
        /// <summary>
        /// 排查大类代码
        /// </summary>
        public String SearchMajorCode { get; set; }
        /// <summary>
        /// 隐患类型ID(作废)
        /// </summary>
        public Guid? HazardTypeID { get; set; }

        /// <summary>
        /// 排查标准ID
        /// </summary>
        public Guid? StandardID { get; set; }
        /// <summary>
        /// 排查标准内容
        /// </summary>
        public String StandardContent { get; set; }
        /// <summary>
        /// 0标准/1手工
        /// </summary>
        public String Type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Guid? CreateFactory { get; set; }

        public Guid? RiskLevel { get; set; }

        public string RiskLevelText { get; set; }
        /// <summary>
        /// 排查结果
        /// </summary>
        public string result { get; set; }
        /// <summary>
        /// 台账编号
        /// </summary>
        public string BookCode { get; set; }
        /// <summary>
        /// 是否为计划内排查（或者是排查时又新增的）
        /// </summary>
        public bool IsNotPlan { get; set; }

        public Guid? ScreeningId { get; set; }
        public Guid? ScreeningProjectId { get; set; }
        public Guid? ScreeningDetailId { get; set; }

        public String StandingBookState { get; set; }
        public String StandingBookStateText { get; set; }
    }
}
